<?php
require_once("Includes/connection.php");
require_once("Includes/functions.php");
session_start();
if(isset($_SESSION['username'])){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<title>Q&A </title>
</head>
<body>
	<table id="header">
    <tr><td></td>
    <td colspan="2" style="width:1000px; text-align:center;">
    	<table><tr><td width="180">
    	<img src="images/logo_qanda.gif" height="80"/>
		</td><td>
        <h1 style="height:auto;">ACM RUM Q&A </h1>
		</td></tr></table>
    </td>
    <td></td></tr>
    <tr><td style="border-bottom:1px solid black;"></td><td style="width:180px; border-bottom:1px solid black;"></td><td style="border-bottom:1px solid black; width:813px;"></td><td style="border-bottom:1px solid black;"></td></tr>
    </table>
    <table id="container">
    	<tr>
        <td style="border:1px solid black; border-right:none; border-top:none; width:176px; height:30px; padding-top:10px; padding-left:5px;  background-color:#FFF;">
        <a href="home.php">Home</a>
        </td><td rowspan="6" style="border-right:1px solid #CCC; border-bottom:1px solid #CCC;">
 			<table id="main_content">
            <tr>
            <td>
            <p>Q&A was developed during the summer of 2010 by Christian Sueiras and Arturo Portnoy, both from the Department of Mathematical 
            Sciences at the University of Puerto Rico at Mayaguez. This web application was prompted by a student strike where the problem of 
            practical democratic participation was central to the conflicts that arose.</p>            
			<p>Q&A has been designed to be a simple, free, open, practical tool to vote or survey via SMS. It was designed mainly for the academic 
            environment, but like many tools available on the Internet, its applicability may quickly surpass our original intent. There will be 
            several releases, the simplest of which (Q&A Minimal) is single user and can run on a server that needs only to interpret PHP.</p>
			<p>Q&A makes use of Zeep Mobile's free SMS API (www.zeepmobile.com) and of Wordle (www.wordle.net). We encourage users to use, modify 
            and adapt Q&A for any purpose they see fit. For example, one can link to a created CSV file via google spreadsheets and use their charts 
            API. However, we do ask that in your derived application you acknowledge the use of Q&A.</p>
			<p>To use Q&A you will need to open an account in Zeep Mobile and create an app that will have its unique identifier. You will need 
            this identifier to direct SMS messages to your poll.</p>
			<p>We hope you will find Q&A useful and that you will make your adaptations and derived solutions freely available to all. If you 
            want to get in touch with us you can reach us at: armijo.elmer@gmail.com, karimjana@gmail.com, portna@gmail.com.</p>
            </td>
            </tr>
            </table>
        </td></tr>
        <tr><td style="border-left:1px solid black; border-right:1px solid black; width:176px; height:30px; padding-left:5px; background-color:#FC0;">
        <a href="create_poll.php">Create Poll</a>
        </td></tr>
        <tr><td style="border-left:1px solid black; border-right:1px solid black; width:176px; height:30px; padding-left:5px; background-color:#FC0;">
        <a href="view_polls.php">View Polls</a>
        </td></tr>
        <tr><td style="border-left:1px solid black; border-right:1px solid black; width:176px; height:30px; padding-left:5px; background-color:#FC0;">
        <a href="manage_accounts.php">Manage Accounts</a>
        </td></tr>
        <tr><td style="border-left:1px solid black; border-right:1px solid black; width:176px; height:30px; padding-left:5px; background-color:#FC0;">
        <a href="index.php">Logout</a>
        </td></tr>
        <tr><td style="border:1px solid black; border-top:none; width:176px; padding-left:5px; background-color:#FC0;">
        </td>
        </tr>
    </table>
</body>
</html>
<?php 
}
else{
	header('Location: index.php');
}
?>